import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '../views/layout'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: {
      name: 'party-construction-lead'
    }
  },
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    children: [
      // 大屏首页
      {
        path: '/party-construction-lead',
        name: 'party-construction-lead',
        component: () =>
          import(/* webpackChunkName: "party-construction-lead" */ '../views/party-construction-lead')
      }]
  }
]

const router = new VueRouter({
  routes,
  mode: 'history',
  base: `/${process.env.VUE_APP_PUBLIC_PATH}/`
})

export default router
